package mest.service.Modeling.Impl;

import mest.dao.Modeling.IemployeeFileDao;
import mest.entity.employee_file;
import mest.service.Modeling.IemployeeFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-15 22:46
 */
@Service
public class employeeFileServiceImpl implements IemployeeFileService {


    @Resource
    private IemployeeFileDao iefd;

    @Override
    public int insertEmployeeFile(employee_file ef) {
        try {
            return iefd.insertEmployeeFile(ef);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }

    @Override
    public int selectCount() {
        return iefd.selectCount();
    }

    @Override
    public List<employee_file> findEmployeeFilePage(int index, int pageSize) {
        return iefd.findEmployeeFilePage((index-1)*pageSize,pageSize);
    }
}
